LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

DisableEvents Method (RasterCollection<T>)






Called to disable raising the ItemAdded and ItemRemoved events. .NET support Silverlight support
Syntax
public void DisableEvents()
'Declaration
 
Public Sub DisableEvents() 
'Usage
 
Dim instance As RasterCollection(Of T)
 
instance.DisableEvents()
public void DisableEvents()
 function Leadtools.RasterCollection.DisableEvents()
public:
void DisableEvents(); 
Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, ItemAdded or ItemRemoved event will be raised when items are added or removed to/from this RasterCollection<T>.

When the internal counter is not 0, ItemAdded and ItemRemoved events will not be raised. Therefore, for each call to DisableEvents, there should be a corresponding call to EnableEvents in order to restore the raising of events.

Example
For an example, refer to RasterCollection<T>.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCollection<T> Class
RasterCollection<T> Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.